﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aj.Core;
using Aj.Core.Control;
using System.Data;

public partial class join_worknews : PageBase
{
    protected DataSet ds = null;
    PageStructure ps = new PageStructure() { PageSize = 15, CurrPage = 1 };
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        try
        {
        ps.CurrPage = QueryParamInt32("page", 1);

        ds = CustomQuery.Article_GetArticlesByPage(" and A_Cateid = " + Utility.WorkNewsPicCid, ref ps);
        pager1.PageStruct = ps;
        }
        catch (Exception ex)
        {
            Utility.WriteErrorLog("join_worknews", ex);
        }
    }
}